package com.li.mapper;

import com.li.pojo.Advice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface AdviceMapper {
  //获取公告总数
  int getAdvTotal(Map<String,Object> queryMap);
  
  //获取所有公告
  List<Advice> findAdvList(Map<String,Object> queryMap);
  
  //添加公告
  Integer addAdvice(@Param("advice") Advice advice);
  
  Integer updateById(@Param("advice") Advice advice);
  
  Integer deleteById(@Param("id") Integer id);
  
  
  
  
}
